﻿using System.Collections.Generic;

namespace DotNetDream.WebMetroEngine.Mvc.Models
{
    public class Tile : ModelBase
    {
        public int TypeId { get; set; }
        public int? ModuleId { get; set; }
        public int? ParentTileId { get; set; }
        public int? LayoutId { get; set; }
        public string PartialView { get; set; }
        public string Header { get; set; }
        public string HeaderShorten
        {
            get
            {
                return "1212";
            }
        }
        public double? WidthHeightRatio { get; set; }

        #region Navigation properties
        public virtual TileType Type { get; set; }
        public virtual TileLayout Layout { get; set; }
        public virtual Tile Parent { get; set; }
        public virtual ICollection<Module> Modules { get; set; }
        public virtual ICollection<Tile> Childrens { get; set; }
        #endregion
    }
}
